import { _decorator, Component, Node, sys } from 'cc';
import { AppControll } from '../manager/AppControll';
const { ccclass, property } = _decorator;

enum AdCallBack {

}
export class platform {
    protected adInitId: string = null;
    protected adVideoAd = null;
    protected adBanner = null;
    protected adInterstitial = null
    protected adCustom = null;
    protected callBack = null;

    constructor() {
    }

    InitRewardVideoAd() {
    }

    ShowRewardVideoAd(target: any, callBack: (bool: boolean, str: string) => void) {
        if (sys.platform == sys.Platform.MOBILE_BROWSER || sys.platform == sys.Platform.DESKTOP_BROWSER || AppControll.isDebug) {
            if (callBack) callBack.call(target, [true, ""]);
            return
        }
    }

    ShowIniterstitalAd() {

    }

    PostMessage(data: any) {
    }

    Share(sucess?, fail?) {
        console.log("Share");
    }

    CreateBanner(pos) {

    }

    DestoryBanner() {
    }

    CreateCustomAd(pos) {
    }

    DestoryCustom() {
    }

    startRecord() {
        console.log("startRecord");
    }

    stopRecord() {
    }

    UpdateRank() {

    }

    UpdateLevelR(level: number, time: number) {

    }

    GetRankList(callback) {
    }

    GetMyLevelR(callback) {

    }

    GetLevelRank(callback) { }

    GetOpenId() {

    }

    SendBuryPoint(id: number) {

    }

    ReoprtScene(id: number) {

    }

    JumpToforum() {

    }

    CreaterClubBtn(pos) {

    }

    HideClubBtn() {

    }

    ShowClubBtn() {

    }

}


